<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>

        function qiuhe(a,b){
            var he=a+b;
            console.log(he);
        }
        qiuhe(1,3);

        function qiuhe1(a,b){
            return a+b;
        }
        var he1=qiuhe1(1,3);
        console.log(he1);

        function test(a,b,c){
            console.log("共有"+arguments.length+"个参数");
            console.log("第二个参数是:"+arguments[1]);
        }
        test(1,2,3);

        var fn=new Function("a","b","return a*b");
        var ji=fn(3,4);
        console.log(ji);

        var fn=function (a,b){  //没有名字的函数 应该用一个变量来接收
            return a*10+b;
        }
        console.log(fn(3,4)); //34

        
    </script>
</body>
</html>